package com.p2p.noc.Demo.DemoTest4;
//子类在继承抽象父类时：需要重新写抽象方法
public class Sunqihao extends People{
    //@Override检测方法重写的正确性
    @Override
    public void run() {
        System.out.println("跑不动");
    }

    @Override
    public void figth() {
        System.out.println("弱爆了");
    }

    @Override
    public void eat() {
        System.out.println("吃土吧你~");
    }
}
